#include "syscall.h"

void Count_to_10();

void Count_to_10()
{
	int i = 0;
	for (i= 0; i <= 10; i++)
	{
		WriteOutputInt(i, 1);	
	}
	Exit(1);
}

int main()
{	
	Write("Parent thread calling Child thread to count to 10\n", 50, 1);
	Fork(Count_to_10, "CountChild", 12);
}